<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{$currentMenuInfo['name']}管理</title>
    <link href="Public/favicon.ico" type="image/x-icon" rel="shortcut icon">
    <link rel="stylesheet" type="text/css" href="__ADMIN__/css/base.css" media="all">
    <link rel="stylesheet" type="text/css" href="__ADMIN__/css/common.css" media="all">
    <link rel="stylesheet" type="text/css" href="__ADMIN__/css/module.css">
    <link rel="stylesheet" type="text/css" href="__ADMIN__/css/style.css" media="all">
	<link rel="stylesheet" type="text/css" href="__ADMIN__/css/default_color.css" media="all">
     <!--[if lt IE 9]>
    <script type="text/javascript" src="Public/static/jquery-1.10.2.min.js"></script>
    <![endif]--><!--[if gte IE 9]><!-->
    <script type="text/javascript" src="__ADMIN__/js/jquery-2.0.3.min.js"></script>
    <script type="text/javascript" src="__ADMIN__/js/jquery.mousewheel.js"></script>
    <!--<![endif]-->
    
</head>
<body>
    <!-- 头部 -->
    <include file="./Public/Admin/tpl/header.html" />
    <!-- /头部 -->

    <!-- 边栏 -->
    <include file="./Public/Admin/tpl/left.html" />
    <!-- /边栏 -->

	<!-- 内容区cvncgmgm -->
	<div id="main-content">
	    <div id="top-alert" class="fixed alert alert-error" style="display: none;">
	        <button class="close fixed" style="margin-top: 4px;">&times;</button>
	        <div class="alert-content">这是内容</div>
	    </div>
	
	    <div id="main" class="main">
	        <!-- 标题 -->
	        <div class="main-title">
	            <h2>{$currentMenuInfo['name']}管理({$count})</h2>
	        </div>
	
	        <!-- 按钮工具栏 -->
	        <div class="cf">
	            <div class="fl">
	            	<a href="{:C('REQUEST_URL')}/{$currentModule}/excel" class="btn">导出EXCEL</a>
	            </div>
	
	            <!-- 高级搜索 -->
	            <!--<div class="search-form fr cf">
	                <div class="sleft">
	                    <div class="drop-down">
	                        <span id="sch-sort-txt" class="sort-txt" data="">所有</span>
	                        <i class="arrow arrow-down"></i>
	                        <ul id="sub-sch-menu" class="nav-list hidden">
	                            <li><a href="javascript:;" value="">所有</a></li>
	                            <li><a href="javascript:;" value="1 ">正常</a></li>
	                            <li><a href="javascript:;" value="0">禁用</a></li>
	                            <li><a href="javascript:;" value="2">待审核</a></li>
	                        </ul>
	                    </div>
	                    <input type="text" name="title" class="search-input" value="" placeholder="请输入标题文档">
	                    <a class="sch-btn" href="javascript:;" id="search" url="/onethink/index.php?s=/admin/article/mydocument/pid/0"><i class="btn-search"></i></a>
	                </div>
	                <div class="btn-group-click adv-sch-pannel fl">
	                    <button class="btn">高 级<i class="btn-arrowdown"></i></button>
	                    <div class="dropdown cf">
	                        <div class="row">
	                            <label>创建时间：</label>
	                            <input type="text" id="time-start" name="time-start" class="text input-2x" value="" placeholder="起始时间" /> -                     
	                            <div class="input-append date" id="datetimepicker"  style="display:inline-block">
	                                <input type="text" id="time-end" name="time-end" class="text input-2x" value="" placeholder="结束时间" />
	                                <span class="add-on"><i class="icon-th"></i></span>
	                            </div>
	                        </div>
	                    </div>
	                </div>
	            </div> -->
	        </div>
	
	
	        <!-- 数据表格 -->
	        <div class="data-table">
	            <table class="">
	                <thead>
	                    <tr>
	                        <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
	                        <volist name='titleArr' id='vo'>
	                        	<th class="">
	                        		<a class="table_title" name="{$field[$i-1]}" href="javascript:;" onclick="order(this)">
	                        			{$vo}
	                        			<span>
		                        			<if condition="$field[$i-1] eq $_GET['order']">
		                        				↑
		                        			<elseif condition="$field[$i-1].' desc' eq $_GET['order']" />
		                        				↓
		                        			</if>
	                        			</span>
	                        		</a>
	                        	</th>
	                        </volist>
	                        <th>操作</th>
	                    </tr>
	                </thead>
	                <tbody>
	                	<volist name="rows" id="vo">
		                    <tr>
		                    	<td><input class="ids" type="checkbox" name="dataId[]" value="{$vo.pk_id}" /></td>
		                    	<volist name="field" id='vos'>
		                    		<td>{$vo[$vos]}</td>
		                    	</volist>
		                    	<td>
			                    	<a href="{:C('REQUEST_URL')}/{$currentModule}/edit?dataId={$vo.pk_id}">编辑 </a>
			                    	<a href="{$opt.url}&dataId={$vo.pk_id}" class="{$opt.class}">禁用 </a>
			                    	<a href="{:C('REQUEST_URL')}/{$currentModule}/del?dataId={$vo.pk_id}" class="confirm ajax-get">删除 </a>
			                    </td>
		                    </tr>
	                    </volist>  
	                </tbody>
	            </table>
	        </div>
	        
	        <!-- 分页 -->
	        <div class="page">
       			<div>
       				<if condition="$pageNo neq 1"><a href="{$current_request_url}/p/1">首页</a><a href="{$current_request_url}/p/{$pageNo-1}" class="next">&lt;&lt;</a></if>
       				<volist name="pageList" id="vo">
       					<if condition="$vo eq $pageNo">
       						<span class="current">{$pageNo}</span>
       					<else/>
       						<a href="{$current_request_url}/p/{$vo}" class="num">{$vo}</a>
       					</if>
       				</volist>
       				<if condition="$pageNo neq $totalNum"><a href="{$current_request_url}/p/{$pageNo+1}" class="next">&gt;&gt;</a><a href="{$current_request_url}/p/{$totalNum}">最后一页</a></if>
       				<span><input id="selectPage" type="text" style="width:50px;height:24px;margin:0 -10px 0 -10px;text-indent:5px;"/></span>
       				<span><a href="javascript:;" onclick="pageTurn()" style="border:none;margin:0 -14px 0 -14px;">GO!</a></span>
       				<span class="rows">共 {$totalNum}页 / {$count} 条记录</span>
       			</div>
       		</div>
	    </div>
	    
	</div>
	<!--/内容区 -->


	<!-- 底部 -->
	<include file="./Public/Admin/tpl/footer.html" />
    <!-- /底部 -->
</body>
</html>